/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.app.service;


import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.app.controller.ZhuchangController;
import io.renren.modules.app.entity.ResidentEntity;
import io.renren.modules.app.entity.UserEntity;


/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface ResidentService extends IService<ResidentEntity> {

	ResidentEntity queryByIphoneAndId(String iPhone,String ID);
	ResidentEntity queryByOpenid(String openId);
	void updateOpenIdByIphoneAndId(String openId, String iPhone, String ID);
	ResidentEntity updateResidentInfo(ResidentEntity newResident);

	ResidentEntity getUserById(int userId);
}

